package com.squirrel.common.vo.video;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Description VideoUpVO 视频（up主视角）
 * @Author 关远键
 * @Version v1.0.0
 * @Date 2021/11/26 15:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("视频（up主视角）")
public class VideoUpVO {

    @ApiModelProperty("视频编号")
    private Integer id;

    @ApiModelProperty("视频标题")
    private String title;

    @ApiModelProperty("视频图片")
    private String image;

    @ApiModelProperty("上传时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    @ApiModelProperty("观看次数")
    private Integer watch;

}
